﻿<!--
        SharePoint 2010 ListManager
        (c) 2010 by Daniel Bedarf

        This Program is licensed under the GNU GLP V2
        It is free to use. Please inform the Author about modification to make the tool better.

        This program is distributed in the hope that it will be useful,
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        GNU General Public License for more details.

        You should have received a copy of the GNU General Public License
        along with this program.  If not, see <http://www.gnu.org/licenses/>.
 -->

<ad:DocumentContent x:Class="CodePlex.DBedarf.Sharepoint.ListManager.ListPropertyPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:ad="clr-namespace:AvalonDock;assembly=AvalonDock"
      mc:Ignorable="d" 
      d:DesignHeight="450" d:DesignWidth="400"
     Title="ListEventhandler" Background="White">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="50" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <StackPanel Grid.Row="0" Orientation="Horizontal" >
            <TextBlock Margin="10,5">Selected Columns:</TextBlock>
            <ScrollViewer VerticalScrollBarVisibility="Auto" MinWidth="200" Margin="10,5" VerticalAlignment="Top">
                <TextBlock Name="txtColumns" />
            </ScrollViewer>
            <Button Click="Useraction_Refresh" Width="32" HorizontalAlignment="Right" VerticalAlignment="Top">
                <Image Source="/Images/refresh.png" />
                <Button.ToolTip>Reload Propertys of the selected fields</Button.ToolTip>
            </Button>
        </StackPanel>
        <GridSplitter Grid.Row="0" Grid.Column="0" Margin="5,0,5,0"  ResizeDirection="Rows" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Background="#FF9ACAFF" Height="2" />
        <StackPanel Grid.Row="1" Name="stpEdit">
            <StackPanel Orientation="Horizontal">
                <GroupBox Header="Show Column(s) in:" Margin="10,5,5,5">
                    <StackPanel Margin="5,5,5,5">
                        <CheckBox Margin="0,0,5,5" Content="New - Form" Name="chkShowNewForm" />
                        <CheckBox Margin="0,0,5,5" Content="Edit - Form" Name="chkShowEditForm" />
                        <CheckBox Margin="0,0,5,5" Content="Display - Form" Name="chkShowDisplayForm" />
                        <CheckBox Margin="0,0,5,5" Content="View - Form" Name="chkShowViewForm" />
                        <CheckBox Margin="0,0,5,5" Content="List Settings" Name="chkShowSettings" />
                    </StackPanel>
                </GroupBox>
                <GroupBox Header="Access:" Margin="10,5,5,5">
                    <StackPanel Margin="5,5,5,5">
                        <CheckBox Margin="0,0,5,5" Content="can be Deleted" Name="chkCanDeleted"/>
                        <CheckBox Margin="0,0,5,5" Content="Requiered" Name="chkIsRequiered" />
                        <CheckBox Margin="0,0,5,5" Content="ReadOnly" Name="chkReadOnly" />
                        <CheckBox Margin="0,0,5,5" Content="Hidden" Name="chkHidden"/>
                        <CheckBox Margin="0,0,5,5" Content="no Crawl by SearchEngine" Name="chkNoCrawlBySearchEngine"/>
                    </StackPanel>
                </GroupBox>
            </StackPanel>
            <Expander Header="CAML Schema" IsExpanded="False" Margin="10,5,5,5" Name="xCaml" >
                <StackPanel>
                    <Label Foreground="Black">Schema can not be edited</Label>
                    <TextBox Name="txtSchema" TextWrapping="Wrap" Style="{DynamicResource SimpleTextBox}" IsReadOnly="True"/>
                </StackPanel>
            </Expander>
            <Expander Header="Static Name" IsExpanded="False" Margin="10,5,5,5" Name="xName">
                <StackPanel>
                    <Label Foreground="Red">Attention: Changing this Property may have a destoring effect to your list, worklfows or eventhandler!</Label>
                    <TextBox Name="txtStaticName" TextWrapping="NoWrap" Style="{DynamicResource SimpleTextBox}" />
                </StackPanel>
            </Expander>
            <Button Content="Save" Margin="30" Click="Useraction_SaveSettings" IsEnabled="{Binding ElementName=cmdSave, Path=IsEnabled}" />
        </StackPanel>
    </Grid>

</ad:DocumentContent>
